package service.impl;

import Dao.SongRequestDao;
import Dao.impl.SongRequestDaoImpl;
import pojo.SongRequest;
import service.SongRequestService;

import java.util.List;

public class SongRequestServiceImpl implements SongRequestService {
    private SongRequestDao songRequestDao = new SongRequestDaoImpl();
    @Override
    public List<SongRequest> getSongIdByRecipientId(int recipientId) {
        return songRequestDao.getSongIdByRecipientId(recipientId);
    }

    @Override
    public boolean insertSongRequest(SongRequest songRequest) {
        return songRequestDao.insertSongRequest(songRequest);
    }
}
